import { createStore } from 'vuex'
import createPersistedState from "vuex-persistedstate"
import user from '@/store/user/user'
import login from '@/store/login/login'
import menu from '@/store/menu/menu'
import system from '@/store/sysetm/system'
import getters from '@/store/gettes'

export default createStore({

  modules: {
    user,
    login,
    menu,
    system
  },
  getters,
  plugins: [
    createPersistedState({
      key: "vuex",
      paths: ['user', 'menu','system']
    })
  ]
})
